package com.yls.except.util;

import java.util.HashMap;
import java.util.Map;

public class PageUtil {
	public static Map<String,Object> getNowPage(int nowpage){
		int count=10;//每页显示条数
		int start=0;
		Map<String,Object> map = new HashMap<String, Object>();
		if(nowpage<=0){
			start=0;
		}else {
			start=nowpage*count;
		}
		map.put("start", start);
		map.put("count", count);
		return map;
	}
	public static Map<String,Object> getNowPage(int nowpage, int count){
		int start=0;
		Map<String,Object> map = new HashMap<String, Object>();
		if(nowpage<=0){
			start=0;
		}else {
			start=nowpage*count;
		}
		map.put("start", start);
		map.put("count", count);
		return map;
	}

}
